﻿#include "Lumina2D.h"
#include "StartScene.h"
#include "GameScene.h"

int main() {
	initgraph(640, 560);
	BeginBatchDraw();
	setbkmode(TRANSPARENT);
	SceneManager sceneManager;
	sceneManager.RegisterScene<StartScene>("start_scene");
	sceneManager.RegisterScene<GameScene>("game_scene");
	sceneManager.SwitchToScene("start_scene");

	InputHandler inputHander;
	while (true)
	{
		cleardevice();
		sceneManager.UpdateCurrentScene(1000/144);
		sceneManager.RenderCurrentScene();
		FlushBatchDraw();
	}
}